﻿
using System;
using System.Collections.Generic;

namespace WaterResources
{
    class WaterMakeTime : IWaterMakeTimeDb
    {
        public DateTime Time { get; set; }

        public IList<string> GetCols()
        {

            return new List<string>
            {
                "试用时间",
            };
        }

        public IList<string> GetMaps()
        {

            return new List<string>
            {
                Time.ToString("F"), // 试用时间
            };
        }
        
        public string GetFindSql()
        {
            return "select time from water_make";
        }

        public string GetSaveSql()
        {
            return @"insert into 
water_make(time) values(@Time)";
        }

        public string GetEditSql()
        {
            return @"update water_make set time=@Time";
        }

        public string GetDropSql()
        {
            return @"delete table water_make";
        }
    }
}
